package com.neusoft.aclome.cmp.cloud.server.jcce.dto.response;


import java.util.ArrayList;
import java.util.List;

// id:"123", name:"阿里", type:"公有云",
// initList:[{name:"阿里1"},{name:"阿里2"},{name:"阿里3"}],
// props:[{name:"实例",type:"instance",value:1,total:100},{name:"网络",type:"network",value:1,total:100},{name:"数据库",type:"databease",value:1,total:100}]
// 新版磋商页面 ZK接口
public class Overview2DTO {

    public Overview2DTO() {

    }

    public Overview2DTO(Integer id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.initList = new ArrayList<>();
        this.props = new ArrayList<>();
    }

    private Integer id;

    private String name;

    private String type;

    private List<CloudTypeInit> initList;

    private List<CloudTypeProp> props;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<CloudTypeInit> getInitList() {
        return initList;
    }

    public void setInitList(List<CloudTypeInit> initList) {
        this.initList = initList;
    }

    public List<CloudTypeProp> getProps() {
        return props;
    }

    public void setProps(List<CloudTypeProp> props) {
        this.props = props;
    }

    public static class CloudTypeInit {

        public CloudTypeInit() {
        }

        public CloudTypeInit(Integer id, String name) {
            this.id = id;
            this.name = name;
        }

        private Integer id;

        private String name;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class CloudTypeProp {

        public CloudTypeProp() {

        }

        public CloudTypeProp(String type, String name, Long value, Long total) {
            this.type = type;
            this.name = name;
            this.value = value;
            this.total = total;
        }

        private String type;

        private String name;

        private Long value;

        private Long total;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public Long getValue() {
            return value;
        }

        public void setValue(Long value) {
            this.value = value;
        }

        public Long getTotal() {
            return total;
        }

        public void setTotal(Long total) {
            this.total = total;
        }
    }
}
